<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:69:"E:\phpStudy\WWW\blog\public/../application/blog\view\index\index.html";i:1523454759;s:54:"E:\phpStudy\WWW\blog\application\blog\view\layout.html";i:1539876012;s:53:"E:\phpStudy\WWW\blog\application\common\view\top.html";i:1538104818;}*/ ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>易风课堂博客读者墙</title>
    <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/nprogress.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/style.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/font-awesome.min.css">
    <link rel="apple-touch-icon-precomposed" href="/static/index/images/icon/icon.png">
    <link rel="shortcut icon" href="/static/index/images/icon/favicon.ico">
    <script src="/static/index/js/jquery-2.1.4.min.js"></script>
    <script src="/static/common/layer/layer.js"></script>
    <link rel="stylesheet" href="/static/common/layui/css/layui.css" media="all">
    <script src="/static/common/layui/layui.all.js"></script>
    <!--[if gte IE 9]>
    <script src="/static/index/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/static/index/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="/static/index/js/respond.min.js" type="text/javascript"></script>
    <script src="/static/index/js/selectivizr-min.js" type="text/javascript"></script>
    <![endif]-->
    <!--[if lt IE 9]>
    <script>window.location.href='upgrade-browser.html';</script>
    <![endif]-->
    <style>
        .pagemenu>li>a{background: #EEE;text-decoration: none;boder:none;height:40px;margin: 0;}
        .pagemenu li ul li{

        }
        .pagemenu li ul li a{font-size:.8em;padding-left:25px;}
    </style>
</head>

<body class="user-select">
<header class="header">
    <nav class="navbar navbar-default" id="navbar">
        <div class="container">
            <div class="header-topbar hidden-xs link-border">
                <ul class="site-nav topmenu">
                    <li><a href="tags.html">标签云</a></li>
                    <li><a href="links.html" rel="nofollow">友情链接</a></li>
                    <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" rel="nofollow">关注本站 <span class="caret"></span></a>
                        <ul class="dropdown-menu header-topbar-dropdown-menu">
                            <li><a data-toggle="modal" data-target="#WeChat" rel="nofollow"><i class="fa fa-weixin"></i> 微信</a></li>
                            <li><a href="#" rel="nofollow"><i class="fa fa-weibo"></i> 微博</a></li>
                        </ul>
                    </li>
                </ul>
                <div id="loginstatus">
                    <?php if(\think\Cookie::get('name') == null): ?>
                    <a data-toggle="modal" data-target="#loginModal" class="login" rel="nofollow">Hi,请登录</a>&nbsp;&nbsp;<a href="javascript:;" class="register" rel="nofollow">我要注册</a>&nbsp;&nbsp;<a href="" rel="nofollow">找回密码</a>
                    <?php else: ?>
                    [<?php echo decrypt(\think\Cookie::get('name'),SALT); ?>]已登录 <a href='<?php echo url("index/Login/goout"); ?>'>退出</a>  <a href='<?php echo url("blog/index/index"); ?>'>个人中心</a>
                    <?php endif; ?>
                </div>
            </div>
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-navbar" aria-expanded="false"> <span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
                <h1 class="logo hvr-bounce-in"><a href="" title=""><img src="/static/index/images/logo.png" alt="" style="display:none;">YIFENG课堂</a></h1>
            </div>
            <div class="collapse navbar-collapse" id="header-navbar">
                <ul class="nav navbar-nav navbar-right">
                    <li class="hidden-index active"><a data-cont="易风课堂" href="/">首页</a></li>
                    <li><a href="category.html">博文</a></li>
                    <li><a href="category.html">相册</a></li>
                    <li><a href="category.html">关于我们</a></li>
                </ul>
                <form class="navbar-form visible-xs" action="/Search" method="post">
                    <div class="input-group">
                        <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off">
                        <span class="input-group-btn">
            <button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
            </span> </div>
                </form>
            </div>
        </div>
    </nav>
</header>
<script>
    $(function(){
        $("#myloginbtn").on('click',function(){
            var data=$("#myform").serialize();
            $.post("<?php echo url('index/Login/index'); ?>",data,function(res){
                if(res.code==1){
                    $('#loginModal').modal('hide')
                    $("#loginstatus").html("["+res.name+"]已登录 <a href='<?php echo url("index/Login/goout"); ?>'>退出</a>  <a href='<?php echo url("blog/index/index"); ?>'>个人中心</a>");
                    $("#centre").html("["+res.name+"]已登录 <a href='<?php echo url("index/Login/goout"); ?>'>退出</a>  <a href='<?php echo url("blog/index/index"); ?>'>个人中心</a>");
                }
            },'json');
            return false;
        });

    })
</script>
<section class="container container-page">
    <div class="pageside">
        <div class="pagemenus">
            <ul class="pagemenu">
                <li><a href="javascript:;">个人资料</a>
                    <ul>
                        <li><a href="<?php echo url('blog/index/index'); ?>">博客管理</a></li>
                        <li><a href="<?php echo url('blog/index/personal'); ?>">个人资料</a></li>
                        <li><a href="<?php echo url('blog/index/setpasswd'); ?>">密码修改</a></li>
                    </ul>
                </li>
                <li><a href="javascript:;">博文管理</a>
                    <ul>
                        <li><a href="<?php echo url('blog/Article/lst'); ?>">博文列表</a></li>
                        <li><a href="<?php echo url('blog/Article/add'); ?>">添加博文</a></li>
                        <li><a href="<?php echo url('blog/blogcate/lst'); ?>">栏目管理</a></li>
                    </ul>
                </li>
                <li><a href="javascript:;">相册管理</a>
                    <ul>
                        <li><a href="<?php echo url('blog/Pics/lst'); ?>">图片列表</a></li>
                        <li><a href="<?php echo url('blog/Pics/add'); ?>">添加图片</a></li>
                        <li><a href="<?php echo url('blog/Picscate/lst'); ?>">相册管理</a></li>
                    </ul>
                </li>
                <li><a href="javascript:;">插件管理</a>
                    <ul>
                        <?php if(is_array($addonmenu) || $addonmenu instanceof \think\Collection || $addonmenu instanceof \think\Paginator): $i = 0; $__LIST__ = $addonmenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$m): $mod = ($i % 2 );++$i;?>
                        <li><a href="<?php echo $m['url']; ?>"><?php echo $m['name']; ?></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </li>
                <li><a href="">友情连接</a></li>
            </ul>
        </div>
    </div>
    <div class="content">
        
<header class="article-header" style="padding-top:0px;padding-bottom: 15px;">
	<h1 class="article-title">博客管理</h1>
</header>
<div class="readers">
	<form class="form-horizontal" action="?" method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="logo" class="col-sm-2 control-label">LOGO上传</label>
			<div class="col-sm-10">
				<img src="<?php if($user['logo'] == ""): ?>/static/index/images/logo.png<?php else: ?>/<?php echo $user['logo']; endif; ?>" alt="..." id="uploadfile" class="img-circle" style="border: 1px solid #DDD;padding:5px;cursor: pointer; height:50px;">
				<input type="file" name="logo" id="logo" style="display: none;"></input>
			</div>
		</div>
		<div class="form-group">
			<label for="blogtitle" class="col-sm-2 control-label">博客名称</label>
			<div class="col-sm-10">
				<input type="text" value="<?php echo $user['blogtitle']; ?>" name="blogtitle" class="form-control" id="blogtitle" placeholder="博客名称">
			</div>
		</div>
		<div class="form-group">
			<label for="blogname" class="col-sm-2 control-label">副标题</label>
			<div class="col-sm-10">
				<input type="text" value="<?php echo $user['blogname']; ?>" name="blogname" class="form-control" id="blogname" placeholder="博客副标题">
			</div>
		</div>
		<div class="form-group">
			<label for="host" class="col-sm-2 control-label">博客地址</label>
			<div class="col-sm-10 form-inline">
				http://<input type="text" value="<?php echo $user['host']; ?>" name="host" class="form-control form-control-static" id="host" style="width:60px;">.blog.com
			</div>
		</div>
		<div class="form-group">
			<label for="info" class="col-sm-2 control-label">博客介绍</label>
			<div class="col-sm-10">
				<textarea class="form-control" name="info" id="info" rows="3"><?php echo $user['info']; ?></textarea>
			</div>
		</div>
		<div class="form-group">
			<label for="content" class="col-sm-2 control-label">关于我们</label>
			<div class="col-sm-10">
				<textarea class="form-control" name="content" id="content" rows="10"><?php echo $user['content']; ?></textarea>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">保存</button>
			</div>
		</div>
	</form>
</div>
    </div>
</section>
<footer class="footer">
    <div class="container">
        <p>&copy; 2018 <a href="">yfketang.com</a> &nbsp; <a href="#" target="_blank" rel="nofollow">豫ICP备0000000-1</a> &nbsp; &nbsp; <a href="http://www.yfketang.cn/" target="_blank">易风课堂</a></p>
    </div>
    <div id="gotop"><a class="gotop"></a></div>
</footer>
<!--微信二维码模态框-->
<div class="modal fade user-select" id="WeChat" tabindex="-1" role="dialog" aria-labelledby="WeChatModalLabel">
    <div class="modal-dialog" role="document" style="margin-top:120px;width:280px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="WeChatModalLabel" style="cursor:default;">微信扫一扫</h4>
            </div>
            <div class="modal-body" style="text-align:center"> <img src="/static/index/images/weixin.jpg" alt="" style="cursor:pointer"/> </div>
        </div>
    </div>
</div>

<!--右键菜单列表-->
<div id="rightClickMenu">
    <ul class="list-group rightClickMenuList">
        <li class="list-group-item disabled">欢迎访问易风课堂博客</li>
        <li class="list-group-item"><span>IP：</span>172.16.10.129</li>
        <li class="list-group-item"><span>教程：</span><a href="http://www.yfketang.cn">www.yfketang.cn</a></li>
    </ul>
</div>
<script src="/static/index/js/bootstrap.min.js"></script>
<!--<script src="/static/index/js/jquery.ias.js"></script> -->
<script src="/static/index/js/scripts.js"></script>
<script>
    $('#uploadfile').on('click',function(){
        $('input[type="file"]').click();
    });
</script>
</body>
</html>